<?php
require_once './GateWayClient.php';
// GatewayClient 3.0.0版本开始要使用命名空间
use GatewayClient\Gateway;
// 设置GatewayWorker服务的Register服务ip和端口，请根据实际情况改成实际值(ip不能是0.0.0.0)
Gateway::$registerAddress = '127.0.0.1:1238';

$content = file_get_contents("php://input");
file_put_contents("./log.txt",$content,FILE_APPEND);
if(empty($content)){
    return;
}

$content = json_decode($content,true);

$uid = $content["uid"];

$client_id = $content["client_id"];



Gateway::bindUid($client_id, $uid);
